﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpg="clr-namespace:Deepforest.WPF.Controls;assembly=WPFPropertyGrid"
    xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:Custom="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Name="window" x:Class="ClassifierUI.Window1"
    Title="Window1" Height="698" Width="1025" Loaded="WindowLoaded" SizeToContent="Height">
    
	<Window.Resources>
	
	</Window.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="626*" />
            <RowDefinition Height="34" />
        </Grid.RowDefinitions>
        <TabControl Grid.RowSpan="1" Margin="-8,0,8,0">
            <TabItem Header="Configuration">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.19*" />
                        <ColumnDefinition Width="0.81*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="1">
                        <wpg:PropertyGrid x:Name="filterPropertyGrid" Instance="{Binding SelectedItem.Tag, ElementName=treeView, Mode=Default}"  />
                    </StackPanel>
                    <TreeView x:Name="treeView" Margin="8,0,8,8">
                        <TreeViewItem Header="Learning Classifier" Tag="{Binding LCS, ElementName=window, Mode=Default}"/>
                        <TreeViewItem x:Name="FiltersTreeViewItem" Header="Filters"/>
                        <TreeViewItem Header="Training Set" Tag="{Binding TrainingSet, ElementName=window, Mode=Default}"/>
                        <TreeViewItem Header="Statistics" Tag="{Binding Statistics, ElementName=window, Mode=Default}"/>
                    </TreeView>
                </Grid>
            </TabItem>
            <TabItem Header="Population">
                <Grid>
                	<Grid.RowDefinitions>
                		<RowDefinition/>
                		<RowDefinition Height="35.048"/>
                	</Grid.RowDefinitions>
                    
                    <ListView x:Name="listview">
                        <ListView.View>
                            <GridView>
                                <!-- set programmatically (see codebehind)-->
                            </GridView>
                        </ListView.View>

                    </ListView>
                	<Button HorizontalAlignment="Left" Margin="8,3.04,0,8" x:Name="Refresh" Width="80" Click="Refresh_Click" Content="Refresh" Grid.Row="1"/>
                    
                </Grid>
            </TabItem>
            <TabItem Header="Statistics">
                <Grid>
                    <chartingToolkit:Chart Margin="43,19,5,103" x:Name="Chart"/>
                    <Button x:Name="testButton" HorizontalAlignment="Right" Margin="0,0,98,19" VerticalAlignment="Bottom" Width="101" Height="29" Content="Button" Click="test_Click" />
                </Grid>
            </TabItem>
        </TabControl>
        
        <Button HorizontalAlignment="Left" Margin="0,7.04,0,3" x:Name="runLCS" Width="80" Click="runLCS_Click" Grid.Row="1" Content="Run LCS"/>
        <Button HorizontalAlignment="Left" Margin="84,7.04,0,3" x:Name="abortLCS" Width="80" Click="abortLCS_Click" Grid.Row="1" Content="Abort" IsEnabled="False"/>
        <Button HorizontalAlignment="Left" Margin="178,7.04,0,3" x:Name="saveLCS" Width="80" Click="saveLCS_Click" Grid.Row="1" Content="Save LCS"/>
        <Button HorizontalAlignment="Left" Margin="262,7.04,0,3" x:Name="loadLCS" Width="80" Click="loadLCS_Click" Grid.Row="1" Content="Load LCS"/>
        <Button HorizontalAlignment="Left" Margin="358,7.04,0,3" x:Name="saveRules" Width="80" Click="saveRules_Click" Grid.Row="1" Content="Save Rules"/>
        <Button HorizontalAlignment="Left" Margin="442,7.04,0,3" x:Name="loadRules" Click="loadRules_Click" Grid.Row="1" Content="Load Rules"/>
    </Grid>
           
</Window>
